<?php include ('lib/twitese.php') ?>
<?php $title = "登录" ?>
<?php include ('inc/header.php') ?>

<div id="login_area">
	<?php if (!function_exists('curl_init')) { ?>
	<div id="description">
		<p style="text-align: center; color:red;">空间不支持curl，无法使用twitese</p>
	</div>
	<?php } else {?>
	<div class="description">
		<p>新浪微博版twitese，新浪微博开源网页客户端</p>		
	</div>
	<form id="login" method="post" action="login_action.php">
		<div><label class="login_label" for="username">用户名：</label><input type="text" id="username" name="username" /></div>
		<div><label class="login_label" for="password">密码：</label><input type="password" id="password" name="password" /></div>
		<?php if (TWITESE_PASSWORD != '') {?>
		<div><label class="login_label" for="twitese_password">附加密码：</label><input type="password" id="password" name="twitese_password" /></div>
		<?php }?>
		<div id="remember"><input type="checkbox" name="remember" id="remember_input" value="1" /><label for="remember_input">记住我</label></div>
		<input type="submit" id="login_btn" value="登录" />
	</form>
	<?php }?>
</div>	

<?php include ('inc/footer.php') ?>
